﻿/**
 * @brief     CRC鏍￠獙鍔熻兘
 * @details   鍖呭惈CRC 8 / 16 / 32 鏍￠獙鍔熻兘
 * @author    Yin
 * @version   1.0
 * @date
 * @copyright
 * @note
 */

#ifndef CRCCHECKTOOL_H
#define CRCCHECKTOOL_H

#include <QObject>

#include "common_global.h"

namespace Common {

class COMMONSHARED_EXPORT CrcCheckTool
{

public:
    /*! CRC鏍￠獙:8 銆?6銆?2> */
    /**
     * @brief Crc16check
     * @param data
     * @param length
     * @return
     */
    static quint16 Crc16check(char *data, int length);


};

}//namespace Common

#endif // CRCCHECKTOOL_H
